#实现项目中的业务，接口执行
import allure

from common.api.BaseRequest import BaseRequest


class Event:
    @classmethod
    @allure.step("登录pinter系统")
    def bank_login(self,request=None,parametrize=None):
        rp = (BaseRequest.excute_api_request(request=request,parametrize=parametrize))
        return rp

    @classmethod
    @allure.step("查询用户余额")
    def bank_query(self, request=None, parametrize=None):
        rp = (BaseRequest.excute_api_request(request=request, parametrize=parametrize))
        return rp